package com.ghpt.service.impl;
import com.ghpt.mapper.JuGuangMapper;
import com.ghpt.pojo.JuGuang;
import com.ghpt.service.JuGuangService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class JuGuangServiceImpl implements JuGuangService {
    @Autowired
    private JuGuangMapper juGuangMapper;

    @Override
    public JuGuang findJuGuangById(Long id) {
        if (id != null) {
            return juGuangMapper.selectById(id);
        }else {
            return null;
        }
    }
    @Override
    public int updateById(JuGuang juGuang) {
        return juGuangMapper.updateById(juGuang);//更新成功为1否则为0
    }
}
